package utils;

import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

public class OutputFile {

	/***/
	private PrintWriter fWrite = null;	
	
	public OutputFile(String outputFileName) 
	{
		openFile (outputFileName);
	}
	
	/**
	 * 
	 * @param fileName
	 */
	private void openFile (String outputName)
	{
			try 
			{
				fWrite = new PrintWriter(new FileWriter(outputName));
			} 
			/**/
			catch (IOException e) 
			{
				e.printStackTrace();
			}

	}
	
	/**
	 * 
	 */
	public void closeFile ()
	{
		fWrite.close();
	}
	
	/**
	 * 
	 * @param line
	 */
	public void write (String line)
	{
		fWrite.println(line);
	}

}
